import request from '../utils/request'

// 定义接口类型
interface responseData<T = any> {
  code: number
  msg: string
  data: T
}

// 获取列表数据
export const getListAPI = (data: any) => {
  return request<responseData>({
    method: 'post',
    url: '/admin/userList ',
    data
  })
}

// 审核
export const auditAPI = (data: any) => {
  return request<responseData>({
    method: 'post',
    url: '/admin/audit',
    data
  })
}
